package com.zhaozhaonews.wemedia.controller;


import com.zhaozhaonews.model.common.dto.ResponseResult;
import com.zhaozhaonews.model.wemedia.dto.WmLoginDto;
import com.zhaozhaonews.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WanJl
 * @version 1.0
 * @title LoginController
 * @description
 * @create 2025/2/17
 */

@RestController
@RequestMapping("/login")
public class LoginController {

    @Autowired
    private WmUserService wmUserService;

    @PostMapping("/in")
    public ResponseResult login(@RequestBody WmLoginDto dto){
        return wmUserService.login(dto);
    }
}